/*
 * @Description:
 * @Author: r_yuesheng
 * @Date: 2021-07-08 20:14:53
 * @LastEditTime: 2021-07-08 20:25:00
 * @LastEditors: r_yuesheng
 */

// 引入你组件需要的type
import * as types from '../action-types';

// 初始化状态
const initState = { inputValue: '123', list: [1, 2] };

function modify(state = initState, action) {
  switch (action.type) {
    case types.MODIFY_ALL:
      return { ...state, inputValue: action.input };
    default:
      return state;
  }
}

export default modify;
